<?php

class Discuz_Page1Controller extends ApiController {

	public function indexAction() {
		$v = Lib\Site::Discuz_Restful('/profile');

		echo '<div style="background-color: #0050A3;color: #FFF;border: 1px solid #F00;padding: 5px;width: 500px">当前用户 '.$v['data']['user']['username'].'</div>';
		$url = Common::getAPIURI('/Sample/v1/discuz_page1');
		echo '<a href="'.$url.'?'.time().'">'.$url.'</a>';
	}

}